package com.yzt.zhuju.network.service;

import com.yzt.zhuju.network.apiconfig.DynamicUrlConstant;
import com.yzt.zhuju.network.apiconfig.IndexUrlConstant;
import com.yzt.zhuju.network.entity.game.GameBaseBean;
import com.yzt.zhuju.network.entity.home.IndexBaseBean;
import com.yzt.plugin_network.response.HttpResponse;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

/**
 * author : bob
 * date   : 2022/12/6
 * desc   :
 */
public interface IndexService {

    /**
     * 游戏列表
     */
    @POST(IndexUrlConstant.GET_GAME_LIST)
    Observable<HttpResponse<GameBaseBean>> getUserGameList(@Body RequestBody body);

    /**
     * 类型 1-发现 2-关注 3-动态
     */
    @POST(IndexUrlConstant.GET_INDEX_RECOMMEND)
    Observable<HttpResponse<IndexBaseBean>> getIndexUserList(@Body RequestBody body);

    /**
     *  类型 1-发现 2-关注 3-动态
     */
    @POST(IndexUrlConstant.GET_INDEX_FOLLOW)
    Observable<HttpResponse<IndexBaseBean>> getIndexFollowList(@Body RequestBody body);

    /**
     *  类型 1-发现 2-关注 3-动态
     */
    @POST(IndexUrlConstant.GET_INDEX_DYNAMIC)
    Observable<HttpResponse<IndexBaseBean>> getIndexDynamicList(@Body RequestBody body);

    /**
     *  类型 1-发现 2-关注 3-动态
     */
    @POST(DynamicUrlConstant.GET_DYNAMIC_LIST)
    Observable<HttpResponse<IndexBaseBean>> getDynamicByUserList(@Body RequestBody body);


}
